package com.jk.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jk.dao.StateDao;
import com.jk.pojo.StateEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName StateService
 * @Descripttion TODO
 * @Author DELL
 * @Date 2022/10/16 20:37
 * @Version 0.001
 */
@Service
public class StateService {

    @Autowired
    private StateDao stateDao;

    /**
     * @Author: binzi
     * @Description:状态
     * @Date: 2022/10/16 20:39
     * @Return: java.util.List<com.jk.pojo.StateEntity>
     **/
    public List<StateEntity> findState() {
        QueryWrapper<StateEntity> queryWrapper = new QueryWrapper<>();
        List<StateEntity> stateEntities = stateDao.selectList(queryWrapper);
        return stateEntities;
    }
}
